package com.ydw.blog.web;

import com.ydw.blog.handler.MyNotFoundException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @GetMapping("/")
    public String index()
            throws MyNotFoundException {
//        String blog = null;
//        if (blog == null){
//            throw new MyNotFoundException("找不到页面");
//        }
//        int i = 1/0;
        return "index";
    }


}
